package com.thx.appserver.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thx.appserver.dao.CappOpinionDao;
import com.thx.appserver.model.CappOpinion;
import com.thx.common.service.BaseManager;

/**
 * Opinion相关的Service层
 * 
 * @author 乔红红
 * 
 */
@Service
@Transactional(readOnly = false)
public class CappOpinionManager extends BaseManager<CappOpinion>{

	@Autowired
	private CappOpinionDao opinionDao;

	public CappOpinionDao getOpinionDao() {
		return opinionDao;
	}

	public void setOpinionDao(CappOpinionDao opinionDao) {
		this.opinionDao = opinionDao;
	}
	
	public List<CappOpinion> searchOpinions(CappOpinion opinion) {
		return  opinionDao.searchOpinion(opinion);
	}
	
	public List<Object> getOpinion(){
		return opinionDao.getOpinion();
	}
}
